package com.example.demo.service.impl;

import com.example.demo.entity.Report;
import com.example.demo.mapper.ReportMapper;
import com.example.demo.service.IReportService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 举报类型表 服务实现类
 * </p>
 *
 * @author Mr.Yang
 * @since 2024-06-01
 */
@Service
public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> implements IReportService {

    @Autowired
    private  ReportMapper reportMapper;

    @Override
    public List<Report> findReport() {
        return reportMapper.selectAllReports();
    }

    @Override
    public Report findReportById(Integer id) {
        return reportMapper.selectReportById(id);
    }
}
